package com.itheima.demo5;

public class Produce implements Runnable{
    private Warehouse store;

    public Produce(Warehouse store) {
        this.store = store;
    }

    private static int num = 0;

    @Override
    public void run() {
     while(true) {
         store.put();
     }
    }
}
